package com.sq.partner.manager.service;

import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.ActirationApplyCardExcel;
import com.sq.partner.manager.mybatis.model.ActirationCardApply;
import com.sq.partner.manager.mybatis.model.ActirationCardDifinition;
import com.sq.partner.manager.mybatis.model.ActirationCardResultDto;
import com.sq.partner.manager.mybatis.model.GatewayUser;
import com.sq.partner.manager.util.Page;
/**
 * 卡单申请service
 * SQ
 *
 */
/**
 * 卡单申请service
 * SQ
 *
 */
public interface ActirationCardApplyService {
	/**
	 * 新增一条激活卡申请信息
	 * @return
	 * @throws Exception
	 */
	public boolean addApplyInfo(ActirationCardApply applyinfo,GatewayUser gatewayuser) throws Exception;
	/**
	 * 删除一条激活卡申请信息
	 * 根据id
	 * @return
	 * @throws Exception
	 */
	public boolean deleteApplyInfo(String applyid) throws Exception;
	/**
	 * 审核卡申请信息
	 * @return
	 * @throws Exception
	 */
	public ActirationCardResultDto auditApplyInfo(GatewayUser user,String auditType,String applyid,String yn,String message) throws Exception;
	/**
	 * 查询一条申请信息的详细信息
	 * 根据id
	 * @return
	 * @throws Exception
	 */
	public ActirationCardApply queryApplyInfo(String applyid) throws Exception;
	/**
	 * 查询多条申请信息
	 * 根据条件
	 * 带分页
	 * @return
	 * @throws Exception
	 */
	public Page<ActirationCardApply> queryApplyInfoList(Page<ActirationCardApply> page) throws Exception;
	/**
	 * 通过关联区域查询已关联该机构的激活卡模板
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public Page<ActirationCardDifinition> queryDefineByRegion(Page<ActirationCardDifinition> page) throws Exception;
	
	public List<ActirationApplyCardExcel>queryCardApplyInfo(Map<String,Object>map)throws Exception;
	
	public ActirationCardApply getCardInfo(Map<String,Object>map)throws Exception;
}
